import request from '@/utils/request'

/**
 * 获取病案包数据
 * @param data 查询参数
 */
export function getMRpackageList (data) {
    return request({
        url: '/DRG/Api/DataManage_Package/PackageList',
        method: 'post',
        data
    })
}

/**
 * 导出病案包
 * @param data 查询参数
 */
export function exportPackage (data) {
    return request({
        url: '/DRG/api/DataManage_Package/ExportList',
        method: 'post',
        data
    })
}

/**
 * 上传多个病案包
 * @param data 查询参数
 */
export function uploadMultipleFiles (data) {
    return request({
        url: '/MRDM/Api/MRPackage/BachUpload',
        method: 'post',
        data,
        headers: {'Content-Type': 'multipart/form-data'}
    })
}

/**
 * 上传单个病案包
 * @param data 查询参数
 */
export function uploadSingleFile (data) {
    return request({
        url: '/MRDM/Api/MRPackage/SingleUpload',
        method: 'post',
        data,
        headers: {'Content-Type': 'multipart/form-data'}
    })
}
